<?php
/**
 * Created by PhpStorm.
 * User: alexlz
 * Date: 10/2/14
 * Time: 10:14 AM
 */

namespace base;

if (!defined('NYMPH_ROOT')) {
  define('NYMPH_ROOT', dirname("../../../" . __FILE__));
  require(NYMPH_ROOT . '/local/loader/kernel/classes/URLClassLoader.php');
}

/**
 * The ConnectionProperties class provides fields
 * and methods for storing and executing different
 * actions with connection information
 */
class ConnectionProperties {

    /**
     * @var string database name
     */
    private $dbName;

    /**
     * @var string server's url
     */
    private $dbURL;

    /**
     * @var string user's name
     */
    private $username;

    /**
     * @var string user's password
     */
    Private $password;

    /**
     * @return string
     */
    public function getDbName()
    {
        return $this->dbName;
    }

    /**
     * @param string $dbName
     */
    public function setDbName($dbName)
    {
        $this->dbName = $dbName;
    }

    /**
     * @return string
     */
    public function getDbURL()
    {
        return $this->dbURL;
    }

    /**
     * @param string $dbURL
     */
    public function setDbURL($dbURL)
    {
        $this->dbURL = $dbURL;
    }

    /**
     * @return string
     */
    public function getUsername()
    {
        return $this->username;
    }

    /**
     * @param string $username
     */
    public function setUsername($username)
    {
        $this->username = $username;
    }

    /**
     * @return string
     */
    public function getPassword()
    {
        return $this->password;
    }

    /**
     * @param string $password
     */
    public function setPassword($password)
    {
        $this->password = $password;
    }

} 